import Mock from 'mockjs'
import homeApi from './mockServeData/home'
import user from './mockServeData/user'
import permission from './mockServeData/permission'


//定义mock请求拦截
Mock.mock('/home/getData',homeApi.getStatisticalData)
// Mock.mock('/home/getData',function(){
//     //拦截到请求后的处理逻辑
//     console.log('拦截到了');
//     //这里可以自定义返回的内容
//     return '米羊'
// })

//用户列表的数据
Mock.mock('/user/add','post',user.createUser)
Mock.mock('/user/edit','post',user.updateUser)
Mock.mock('/user/del','post',user.deleteUser)
Mock.mock(/user\/getUser/,user.getUserList)

Mock.mock(/permission\/getMenu/,permission.getMenu)